package com.cjw.pojo.dto.soulread;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @create_time: 2021.12.30
 * @author : cjw
 * @descripe: 朗读简单DTO
 */
@Data
@ApiModel("朗读简单DTO")
public class ReadDTO {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("朗读id")
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("添加时间")
    private Date addTime;

    @ApiModelProperty("标题")
    private String topic;

    @ApiModelProperty("热度")
    private Integer heat;

    @ApiModelProperty("是否收藏")
    private Boolean collection;

    @ApiModelProperty("图片")
    private String picture;
}
